<include file="__PUBLIC__/header"/>
<div class="page-container">
    <!--菜单-->
    <div class="cl pd-5 bg-1 bk-gray mt-10 mb-10">
        <span class="l">
            <a href="javascript:;" onclick="qz_layer_open('新增菜单','{|U:'add'}')" class="btn btn-primary radius"><i
                    class="Hui-iconfont">&#xe600;</i> 新增</a>
            <a href="javascript:;" onclick="forbid_all('{|U:'Admin/Menu/changeStatus/method/forbid'}')"
               class="btn btn-warning radius ml-5"><i class="Hui-iconfont">&#xe631;</i> 隐藏</a>
<a href="javascript:;" onclick="resume_all('{|U:'Admin/Menu/changeStatus/method/resume'}')"
   class="btn btn-success radius ml-5"><i class="Hui-iconfont">&#xe615;</i> 显示</a>
            <a href="javascript:;" onclick="del_forever_all('{|U:'del'}','id[]')" class="btn btn-danger radius"><i
                    class="Hui-iconfont">&#xe6e2;</i> 删除</a>
        </span>
        <span class="r" style="line-height:1.6em;margin-top:3px"><strong>{$up_menu}</strong></span>
    </div>
    <!--列表-->
    <table class="table table-border table-bordered table-bg mt-10 table-sort" id="table">
        <thead>
        <tr class="text-c">
            <th><input type="checkbox" name="" value=""></th>
            <th>ID</th>
            <th>名称</th>
            <th>上级菜单</th>
            <th>URL</th>
            <th>图标</th>
            <th>排序</th>
            <th>仅开发者模式显示</th>
            <th>隐藏</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <list from="$data" name="$qz">
            <tr class="text-c">
                <td><input type="checkbox" name="id[]" value="{$qz.id}"></td>
                <td>{$qz.id}</td>
                <td><a href="{|U:'index',array('id'=>$qz['id'])}" class="c-blue" title="{$qz.title}">{$qz.title}</a>
                </td>
                <td>{$qz.up_title}</td>
                <td>{$qz.url}</td>
                <td><i class="Hui-iconfont">{$qz.icon}</i></td>
                <td>{$qz.sort}</td>
                <td>{$qz.is_dev_text}</td>
                <td>{$qz.hide_text}</td>
                <td width="100">
                    <a title="编辑" href="javascript:;"
                       onclick="qz_layer_open('菜单编辑','{|U:'edit',array('id'=>$qz['id'])}')" class="label label-primary radius"><i class="Hui-iconfont">&#xe6df;</i></a>
                    <a title="删除" href="javascript:;" onclick="del_forever(this,'{$qz['id']}','{|U:'del'}')"
                       class="label label-danger radius"><i class="Hui-iconfont">&#xe6e2;</i></a>
                </td>
            </tr>
        </list>
    </table>
</div>
<include file="__PUBLIC__/footer"/>
</body>
</html>